<?php
//https://github.com/fzaninotto/Faker/
// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class NewsTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			News::create([
				'type' => $faker->numberBetween($min = 1, $max = 9),
				'projects_name' => $faker->name,
				'title' => $faker->text($maxNbChars = 10),
				'original_url' => $faker->url,
				'content' => $faker->paragraph($nbSentences = 10),
				'user_id' => $faker->numberBetween($min = 1, $max = 9),
				'status' => 1
			]);
		}
	}

}